//
//  NOCommentCell.m
//  WanCaiC8
//
//  Created by tangang on 2018/5/16.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "NOCommentCell.h"

@implementation NOCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        UIView *line=[[UIView alloc]init];
        line.backgroundColor=DEFAULTBGCOLOR;
        [self.contentView addSubview:line];
        [line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.equalTo(self.contentView);
            make.height.mas_equalTo(@.7);
        }];
        UIImageView *imageV=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"NoComment"]];
        [self.contentView addSubview:imageV];
        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView).with.offset(30);
            make.centerX.equalTo(self.contentView);
            make.size.mas_equalTo(imageV.image.size);
        }];
        
        QXLable *lab=[[QXLable alloc]initGaryTitle];
        lab.text=@"暂无评论";
        [self.contentView addSubview:lab];
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(imageV);
            make.top.equalTo(imageV.mas_bottom).with.offset(5);
            make.bottom.equalTo(self.contentView).with.offset(-40);
        }];
    }
    return self;
}

@end
